package com.zb.uniman.common;

/**
 * Author:B
 * Description:
 */

public class BussinessException extends RuntimeException {
    private int code;
    private String msg;

    public BussinessException(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public BussinessException(String message, int code, String msg) {
//        调用父类的构造器，生成多样的异常类
        super(message);
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
